package com.xf.system.http.req.role;

import com.xf.system.http.BaseReqDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author xiefengf
 */
@ApiModel(description = "查询角色条件集合入参")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class RoleListReqDTO extends BaseReqDTO {

    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "角色权限字符串")
    private String roleKey;

    @Schema(description = "角色状态（0正常 1停用）")
    private String status;

    @Schema(description = "开始时间（创建时间）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    @Schema(description = "结束时间（创建时间）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
